<template>
  <div>
    <h3>Mycom中的组件</h3>
    <slot name="header" :info="info" :user="user"></slot>
    <slot>配备内容</slot>
    <slot name="footer"  :info="info" :user="user"></slot>
  </div>
</template>

<script>
export default {
    name:'MyCom',
    data(){
        return {
            user:'zs',
            info:{
                phone:'19981478963',
                address:'北京'
            }
        }
    }

}
</script>

<style>

</style>